//
//  HZGoodsDetailHeadModel.h
//  app
//
//  Created by 刘华舟 on 15/5/26.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>


#import "HZGoodsDetailPromotionModel.h"
#import "HZGoodsDetailViewPointModel.h"
#import "HZGoodsDetailTopModel.h"
#import "HZGoodsCommentModel.h"

static const NSInteger kGoodsDetailPicHeadViewHeight = 640+160+kSizeMallViewMargin;
static const NSInteger kGoodsDetailTypeButtonHeight = 60;
static const NSInteger kGoodsDetailSpecificationsViewHeight = kGoodsDetailTypeButtonHeight+kSizeMallViewMargin*2;
static const CGFloat kGoodsDetailExtrosViewHeight = (80 + 2*kSizeMallViewMargin)/2;
static const NSInteger kGoodsDetailViewPointHeight = kHZGoodsDetailViewPointHeight;
static const NSInteger kGoodsDetailNoticeCellHeight = 60/2;
static const NSInteger kGoodsDetailTotalCmtViewHeight = 80;

@interface HZGoodsDetailHeadModel : NSObject

@property (assign, nonatomic) CGFloat headHeight;

@property (assign, nonatomic) CGFloat promotionViewHeight;
@property (assign, nonatomic) CGFloat specificationsViewHeight;
@property (assign, nonatomic) CGFloat buyNoticesViewHeight;

@property (strong, nonatomic) HZGoodsDetailTopModel *topModel;


@property (strong, nonatomic, readonly) NSString *maxGiftNum; //可以赠品的个数
@property (strong, nonatomic, readonly) NSArray *giftList;  //赠品列表

@property (strong, nonatomic, readonly) NSArray *promotion; //商品详情的活动列表

@property (strong, nonatomic, readonly) NSArray *patterns;  //商品详情的规格
@property (assign, nonatomic) NSInteger defaultPattern; //默认规格


@property (strong, nonatomic, readonly) NSArray *proIntro; //专家介绍
@property (strong, nonatomic, readonly) NSArray *buyNotes;//商品购买须知





@property (strong, nonatomic) HZGoodsDetailPromotionModel *promotionModel;



@property (strong, nonatomic) HZGoodsDetailViewPointModel *viewPointModel;


+ (instancetype)modelWithDictionary:(NSDictionary *)dict;
- (instancetype)initModelWithDictionary:(NSDictionary *)dict;

- (void)switchViewPointView:(HZGoodsDetailViewPointModel *)model;

- (void)switchPromotionView:(HZGoodsDetailPromotionModel *)model;


- (void)switchSpecificationsWithDictionary:(NSDictionary *)dict;

@end
